<template>
	<view class="container">
		<headerView type='second' leftShow>{{$t('隐私协议')}}</headerView>
		<view class="content">
			<view class="title">
				{{$t('*请仔细阅读隐私政策')}}
			</view>
			<view class="article" v-html="info.content"></view>
		</view>
	</view>
</template>

<script>
	import headerView from "@/components/headerView/index.vue"
	import {
		articleApi
	} from "@/api/api.js"
	export default {
		components: {
			headerView
		},
		data() {
			return {
				info: {}
			};
		},
		onLoad() {
			this.getInfo()
		},
		methods: {
			getInfo() {
				articleApi({
					type: 1
				}).then(res => {
					console.log(res.data.data)
					this.info = res.data.data[0]
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.container {
		padding-bottom: 40rpx;

		.content {

			.title {
				padding: 30rpx 24rpx 0;
				font-size: 42rpx;
				font-weight: 500;
				color: #fff;
				line-height: 120rpx;
				border-bottom: 2rpx solid hsla(0, 0%, 100%, .1);
				border-top: 2rpx solid hsla(0, 0%, 100%, .1);
			}

			.article {
				padding: 20rpx 24rpx 0;
				font-size: 30rpx;
				font-weight: 400;
				color: #fff;
				line-height: 50rpx;
			}
		}
	}
</style>